package aspirateur;

import java.net.MalformedURLException;
import java.net.URL;

public class ImageDownloader extends FileDownloader {

	public final int MAX_TAILLE_IMAGE = 2048;
	
	public ImageDownloader(String _url, String _src, String _dest){
		super(_src, _dest);
		try {
			url = new URL(_url);
			src = _src;
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
	}

	public void save() {
		saveFile(MAX_TAILLE_IMAGE);
	}		
	
}
